package com.shenfa.bean;

/**
 * 城市信息
 * 
 * @author yanglong
 * 
 * @date 2011-08-19
 *
 */
public class City {

	private String cityno;
	private String cityname;
	private String parentno;
	private String flag;
	private String py;
	
	@Override
	public String toString() {
		return "cityno = "+cityno+", cityname = "+cityname+", parentno = "+parentno+", flag = "+flag;
	}
	
	public String getCityno() {
		return cityno;
	}
	public void setCityno(String cityno) {
		this.cityno = cityno;
	}
	public String getCityname() {
		return cityname;
	}
	public void setCityname(String cityname) {
		this.cityname = cityname;
	}
	public String getParentno() {
		return parentno;
	}
	public void setParentno(String parentno) {
		if("root".equals(parentno))
			parentno = "0";
		this.parentno = parentno;
	}
	public String getFlag() {
		return flag;
	}
	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getPy() {
		return py;
	}

	public void setPy(String py) {
		this.py = py;
	}
}
